﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WAD.WEB.AppCode;
using WAD.Model;
using WAD.DAL;
using System.Data;

namespace WAD.WEB.Client.Ajax
{
    /// <summary>
    /// 
    /// </summary>
    public class WxShared : AjaxBase
    {
        public override void AjaxMethodDispatch(String identity)
        {
            switch (identity)
            {
                case "updateticket": this.UpdateTicket(); break;
            }
        }
        /// <summary>
        /// 更新微信分享票据
        /// </summary>
        [QD.Web.Ajax.AjaxMethod]
        public void UpdateTicket()
        {
            if (WxJsWebBase.setTicket())
            {
                Success();
            }
            else
            {
                Fail();
            }
        }
    }
}